package aiku.numericalcontroloa.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import aiku.numericalcontroloa.Base.Utils.Result;
import aiku.numericalcontroloa.Model.Dto.outOfManagementDto;
import aiku.numericalcontroloa.Service.outOfManagementService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@RestController
@RequestMapping("/outOfManagement")
public class outOfManagementController {
    
    @Autowired
    private outOfManagementService serviceImp;

    @PostMapping("/selectOutOfManagement")
    public Result selectOutOfManagement(@RequestBody outOfManagementDto data) {
        return serviceImp.selectOutOfManagement(data);
    }

    @PostMapping("/addOutOfManagement")
    public Result addOutOfManagement(@RequestBody outOfManagementDto data) {
        return serviceImp.addOutOfManagement(data);
    }
    
}
